package net.cjw.initsb.controller.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import springfox.documentation.annotations.ApiIgnore;
@ApiIgnore
@RestController
public class LoggerTestController {
	Logger logger = LoggerFactory.getLogger(this.getClass());

	// 没有返回值的异步任务
	@GetMapping("logger")
	public String test2() {
		logger.debug("debug 日志");
		logger.info("info 日志");
		logger.warn("warn 日志");
		logger.error("error 日志");

		return "访问成功";
	}
}
